<template>
  <el-dialog class="check-dialog"
             title="详情"
             :visible.sync="visible"
             @close="handleCloseDialog">
    <el-form ref="UpdateDataForm" :model="checkTemp" >
      <el-form-item label="名称：" prop="">
        <el-input v-model="checkTemp.name" type="text" readonly="">
        </el-input>
      </el-form-item>
      <el-form-item label="简介：" prop="">
        <el-input v-model="checkTemp.description" type="text" readonly="">
        </el-input>
      </el-form-item>
      <el-form-item label="介绍：" prop="">
        <el-input v-html="checkTemp.content" type="textarea" readonly="">
        </el-input>
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="handleCloseDialog" type="primary">关闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
  export default {
    name: 'check-dialog',
    data() {
      return {
        visible: false
      }
    },
    props: {
      dialogCheckVisible: Boolean,
      checkTemp: Object
    },
    watch: {
      dialogCheckVisible(val) {
        this.visible = val
      }
    },
    methods: {
      handleCloseDialog() {
        this.visible = false
        this.$emit('close', this.visible)
      }
    }
  }
</script>

<style lang="scss" scoped>
  .unit {
    position: absolute;
    right: 10px;
    top: 40px;
    color: #409EFF;
  }
</style>
